package com.iraeta.common;

import java.util.concurrent.ConcurrentHashMap;

public class MySession {
    private final ConcurrentHashMap<String, Object> items = new ConcurrentHashMap<String, Object>();

    public void put(String key, Object value) {
        this.items.put(key, value);
    }

    public void setAttribute(String key, Object value) {
        this.items.put(key, value);
    }

    public Object get(String key) {
        return this.items.get(key);
    }

    public Object getAttribute(String key) {
        return this.items.get(key);
    }

    public void abadon() {
        this.items.clear();
    }
}